﻿using System;
using Newtonsoft.Json;

namespace MTPAutoBackup;

public class DeviceInfo
{
    public string Id{ get; set; }
    public int Sort { get; set; }
    public string Name { get; set; }
    public string PathName { get; set; }
    public string Model { get; set; }
    public string SerialNumber { get; set; }
    public string DeviceType { get; set; }
    public string DeleteFlag { get; set; }
    
    public DeviceInfo()
    {
        // 默认无参构造方法
    }
    
    // 重写 ToString 方法
    public override string ToString()
    {
        string jsonString = JsonConvert.SerializeObject(this, Formatting.None);
        return jsonString;
    }
}